<!--
author:俞婧，田新宇，周妍
create time:2020-07-08
update time:2020-07-18
 -->

{% load static%}

<!DOCTYPE html>
<html lang="zh-CN">
  <head class="nav-type-1 dark-nav">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{% block title %}base{% endblock %}</title>

    <!-- Bootstrap -->
    <link href="{% static 'bootstrap-3.3.7-dist/css/bootstrap.min.css' %}" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    {% block css %}{% endblock %}

  </head>
  <body>
        <!-- 全屏搜索 -->
      <div class="search-wrap">
        <div class="search-inner">
          <div class="search-cell">
            <form  action="/search_course/" method="get">
              <div class="search-field-holder">
                <input type="search"  name='course_name' class="form-control main-search-input" placeholder="Search for">
                <div class="search-submit-icon"><i class="icon icon_search"></i></div>
                <input type="submit" class="search-submit" value="search">
              </div>
            </form>
          </div>
        </div>
        <i class="icon icon_close search-close" id="search-close"></i>
      </div>
      <!-- end 全屏搜索 -->
  <nav class="navbar navbar-fixed-top" style="background-color: #3b3b3b;color: #ffffe8">
        <div class="navigation">
          <div class="container relative">

            <div class="row">

              <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse">
                  <span class="sr-only">Toggle navigation</span>
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
                </button>
              </div><!-- end navbar-header -->

              <!-- side menu -->
              <div class="side-menu nav-left  hidden-xs">
                <div class="nav-inner">
                  <div class="nav-search-wrap  hidden-xs">
                    <a href="#" class="nav-search search-trigger">
                      <i {% comment %}class="icon icon_search"{% endcomment %}></i>
                    </a>
                  </div>
                </div>
              </div>
                <!-- end side menu -->

              <div class="col-md-12 nav-wrap">
                <li class="collapse navbar-collapse text-center" id="navbar-collapse">

                  <ul class="nav navbar-nav">

					<li><a href="/index/">首页</a></li>
					<li><a href="/course/">课程</a></li>
                    <li><a href="/show_course/">个人中心</a></li>

                  {% if request.session.is_login %}
                  <li><a href="#">当前在线：{{ request.session.user_name }}</a> </li>
                   <li><a href="/logout/">登出</a> </li>
                  {% else %}
                   <li><a href="/login/">登录</a></li>
                   <li><a href="/register/">注册</a></li>
                   {% endif %}<li id="mobile-search" class="">
                      <form method="get" class="mobile-search" action="/search_course/">
                        <input type="search" name="course_name" class="form-control" placeholder="Search...">
                        <button type="submit" class="search-button">
                          <i class="icon icon_search" ></i>
                        </button>
                      </form>
                    </li>
                  </ul>
                    <!-- end 菜单栏 -->
                </div>
                <!-- end collapse -->
              </div> <!-- end col -->


              <!-- side menu -->
              <!--<div class="side-menu right mobile-left-align">
                <div class="nav-inner menu-socials social-icons">
                  <div class="right">
                    <a href="#"><i class="fa fa-instagram"></i></a>
                    <a href="#"><i class="fa fa-facebook"></i></a>
                    <a href="#"><i class="fa fa-twitter"></i></a>
                    <a href="#"><i class="fa fa-pinterest-p"></i></a>
                    <a href="#"><i class="fa fa-heart"></i></a>
                  </div>
                </div>
              </div> --><!-- end side menu -->

            </div> <!-- end row -->
          </div> <!-- end container -->
        </div> <!-- end navigation -->
      </nav>


    {% comment %}<nav class="navbar navbar-default">
      <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#my-nav" aria-expanded="false">
            <span class="sr-only">切换导航条</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">Mysite</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="my-nav">
          <ul class="nav navbar-nav">
            <li class="active"><a href="/index/">主页</a></li>
          </ul>
          <ul class="nav navbar-nav navbar-right">
             {% comment %} {% if request.session.is_login %}
                <li><a href="#">当前在线：{{ request.session.user_name }}</a> </li>
                  <li><a href="/user_center/">个人中心</a></li>
                <li><a href="/logout/">登出</a> </li>
              {% else %}
                <li><a href="/login/">登录</a></li>
                <li><a href="/register/">注册</a></li>
              {% endif %}{% endcomment %}
 {% comment %}         </ul>
        </div><!-- /.navbar-collapse -->
      </div><!-- /.container-fluid -->
    </nav>{% endcomment %}

    {% block content %}{% endblock %}


    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="{% static 'js/jquery-3.2.1.js' %}"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="{% static 'bootstrap-3.3.7-dist/js/bootstrap.min.js' %}"></script>
  </body>
</html>